import Cookies from "js-cookie";

/**
 * 设置本地记录
 * @param {*} key    存储键
 * @param {*} val    存储键
 * @param {*} option    存储配置
 * @returns
 */
export const setCookies = (key: string, val: any, option:object) => {
  return Cookies.set(key, val, option);
}

/**
 * 移除本地记录
 * @param {*} key    存储键
 * @returns
 */
export const removeCookies = (key: string) => {
  return Cookies.remove(key);
}